import request from "./http"

function getSongDetail(songId){
    let url=`/api/v1/restserver/ting?method=baidu.ting.song.play&songid=${songId}`
    return request.get(url)
}
//歌手的歌曲列表
function getsingerList(limits,tinguid){
    let url=`/api/v1/restserver/ting?method=baidu.ting.artist.getSongList&limits=${limits}&tinguid=${tinguid}`
    return request.get(url)
}


//歌手详情信息
function getsingerDetail(ting){
    let url=`/api/v1/restserver/ting?method=baidu.ting.artist.getInfo&tinguid=${ting}`
    return request.get(url)
}

// 搜索接口
function getSearchDetail(query){
    let url=`/api/v1/restserver/ting?method=baidu.ting.search.catalogSug&query=${query}`
    return request.get(url)
}

export {
    getSongDetail,getsingerList,getsingerDetail,getSearchDetail
}